<template>
  <div class="tab-bar">
    <div class="tab-bar-item">
      <img src="@/assets/img/tabbar/tab_home.png" />
      <span>首页</span>
    </div>
    <div class="tab-bar-item">
      <img src="@/assets/img/tabbar/tab_order.png" />
      <span>收藏</span>
    </div>
    <div class="tab-bar-item">
      <img src="@/assets/img/tabbar/tab_message.png" />
      <span>订单</span>
    </div>
    <div class="tab-bar-item">
      <img src="@/assets/img/tabbar/tab_favor.png" />
      <span>消息</span>
    </div>
  </div>
</template>

<script setup>
const tabbarData = [
  {
    image: "@/assets/img/tabbar/tab_home.png",
    imageActive: "@/assets/img/tabbar/tab_home_active.png",
    text: "首页",
    path: "/home",
  },
  {
    image: "@/assets/img/tabbar/tab_home.png",
    imageActive: "@/assets/img/tabbar/tab_home_active.png",
    text: "",
    path: "/home",
  },
  {
    image: "@/assets/img/tabbar/tab_home.png",
    imageActive: "@/assets/img/tabbar/tab_home_active.png",
    text: "首页",
    path: "/home",
  },
  {
    image: "@/assets/img/tabbar/tab_home.png",
    imageActive: "@/assets/img/tabbar/tab_home_active.png",
    text: "首页",
    path: "/home",
  },
];
</script>

<style lang="less" scoped>
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  border-top: 1px solid #f3f3f3;

  .tab-bar-item {
    flex: 1;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    img {
      width: 36px;
    }

    span {
      margin-top: 4px;
      font-size: 12px;
    }
  }
}
</style>
